package top.resty.erp.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import top.resty.erp.dao.IStorage;
import top.resty.erp.domain.Products;
import top.resty.erp.domain.Storage;
import top.resty.erp.service.StorageService;

import java.util.List;

/**
 * <pre>
 *
 * </pre>
 *
 * @author : resty
 * @date : 2021年03月31 16:59
 */
@Service
public class StorageServiceImpl implements StorageService {
	
	@Autowired
	private IStorage iStorage;
	
	@Override
	public Storage findById(Integer id) {
		return iStorage.findById(id);
	}
	
	@Override
	public List<String> getStandardsName(String name) {
		return iStorage.getStandardsName(name);
	}
	
	@Override
	public List<String> getTypesName(String name) {
		return iStorage.getTypesName(name);
	}
	
	@Override
	public List<Storage> findStorageByCondition(Storage storage) {
		return iStorage.findStorageByCondition(storage);
	}
	
	@Override
	public List<String> findByVarieties() {
		return iStorage.findByVarieties();
	}
	
	@Override
	public int updateCount(Integer value, Integer id) {
		return iStorage.updateCount(value,id);
	}
	
	@Override
	public Storage findStorageByProducts(Products products) {
		return iStorage.findStorageByProducts(products);
	}
	
	@Override
	public int saveStorage(Storage storage) {
		return iStorage.saveStorage(storage);
	}
	
	@Override
	public List<Storage> findAll() {
		return iStorage.findAll();
	}
}
